package com.shilei.adapter;

import java.io.*;

/**
 * @description:  接口转换器  适配器
 *
 *                 常见的Adapter 反而不是Adapter
 *                 WindowAdapter
 *                 KeyAdapter
 * @author: 81271
 * @date: 2020-04-22 20:04
 */
public class Main {

    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("c:/test.text");
        InputStreamReader isr = new InputStreamReader(fis);
        BufferedReader br = new BufferedReader(isr);
        String line = br.readLine();
        while (line !=null && !line.equals("")) {
            System.out.println(line);
        }
        br.close();
    }
}
